﻿using static AspDotNet.Core7.First.Middlewares.ContentMiddleware;

namespace AspDotNet.Core7.First.Middlewares
{
    public static class MiddlewareExtensions
    {
        public static IApplicationBuilder UseContentMiddleware(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<ContentMiddleware>();
        }
        public static IApplicationBuilder UseRequestEditingMiddleware(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<RequestEditingMiddleware>();
        }
        public static IApplicationBuilder UseResponseEditingMiddleware(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<ResponseEditingMiddleware>();
        }
        public static IApplicationBuilder UseShortCircuitMiddleware(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<ShortCircuitMiddleware>();
        }
    }
}
